package person.zjh.kaoyansharehub.service;

import com.baomidou.mybatisplus.extension.service.IService;
import person.zjh.kaoyansharehub.dto.PageCommentDTO;
import person.zjh.kaoyansharehub.dto.PageFavoriteDTO;
import person.zjh.kaoyansharehub.dto.SaveFavoriteDTO;
import person.zjh.kaoyansharehub.pojo.Favorite;
import person.zjh.kaoyansharehub.result.PageResult;
import person.zjh.kaoyansharehub.result.Result;

/**
 * @description: TODO
 * @author 郑佳豪
 * @date 2025/2/21 12:55
 * @version 1.0
 */

public interface FavoriteService extends IService<Favorite> {

    /**
     * 添加收藏
     * @param requestParam 请求参数
     */
    Result saveFavorite(SaveFavoriteDTO requestParam);

    PageResult getFavoriteByUserId(PageFavoriteDTO requestParam);

    Result getFavoriteCount(Long userId);
}
